import com.lishanyang.spring.util.XmlBeanAssemble;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestXmlBeanAssemble {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("src/main/webapp/WEB-INF/applicationContext.xml");
        XmlBeanAssemble xba=(XmlBeanAssemble) context.getBean("xba");
        xba.show();
        System.out.println("---------------------------");
        ((ClassPathXmlApplicationContext) context).destroy();
    }
}
